package pojo;

import java.sql.Connection;

public class PoolConnection {
    Connection connection;
    int state;

    public PoolConnection() {
    }

    public PoolConnection(Connection connection, int state) {
        this.connection = connection;
        this.state = state;
    }

    public Connection getConnection() {
        return connection;
    }

    public void setConnection(Connection connection) {
        this.connection = connection;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "PoolConnection{" +
                "connection=" + connection +
                ", state=" + state +
                '}';
    }
}
